const { command, resolve } = require('../../helper')


module.exports = new class {
	constructor(){
		//命令行参数
		this.command = command()
		//项目配置
		this.appConf = require('../AppConfig')
		//公共包配置
		this.commonConf = require(resolve(this.appConf.commonModules, 'conf'))
		//用户环境配置文件
		this.userEnvConf = require(resolve(this.appConf.envConf, `${this.command.env}.env`))
		//webpack基础配置
		this.baseWebpackConf = require(`../../webpackConf/webpack.${this.command.dev ? 'dev' : 'prod'}`)
		//序列化appId
		this.appList = require('./CreateAppList').call(this)
		//虚拟域名和工作空间格式化
		this.location = require('./CreateLocation').call(this)
		//用户webpack扩展配置 + 基础配置
		this.userBaseWebackConf = require('./CreateUserBaseWebpackConf').call(this)

		this.transformOutputPath = require('./transformOutputPath')

		this.vconsoleSource = require('./CreateVconsoleSource')

		this.createBundleList = require('./CreateBundleList')
	}
}

